{% extends 'registration/base.html' %}
{% load template_helper %}

{% block title %}
注册 | {{ website.title }}
{% endblock %}
{% block body %}
<!-- UI - X Starts -->
<div class="ui-331">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-sm-8 col-xs-12 col-md-offset-3 col-sm-offset-2 col-mob">
                <!-- Outer Starts -->
                <div class="ui-outer">
                    <!-- Form -->
                    <div class="ui-form">
                        <!-- Heading -->
                        <h4>注册 - {{ website.title }}</h4>
                        <!-- Form -->
                        {% if form.errors %}
                        <div class="alert alert-danger" role="alert">{{ form.errors }}</div>
                        {% endif %}
                        <form class="form" method="post">
                            {% for line in form %}
                                <div class="form-group">
                                    {{ line | css:"form-control" | placeholder }}
                                </div>
                            {% endfor %}
                            <div class="form-group">
                                <!-- Sign Up Button -->
                                <button type="submit" class="btn btn-lblue">注册</button>
                                <a style="margin-left: 10px" href="{% url 'login' %}">点击登录</a>
                            </div>
                            {% csrf_token %}
                        </form>
                    </div>
                </div>
                <!-- Outer Ends -->
            </div>
        </div>
    </div>
</div>
<!-- UI - X Ends -->
{% endblock %}